//
//  LoginWithAccountViewController.m
//  Hui
//
//  Created by HawkingWang on 16/10/27.
//  Copyright © 2016年 Hui. All rights reserved.
//

#import "LoginWithAccountViewController.h"
#import "RegisterViewController.h"//注册Controller
#import "RetrievePasswordViewController.h"//找回密码Controller

@interface LoginWithAccountViewController ()
@property (weak, nonatomic) IBOutlet UITextField *accountName;
@property (weak, nonatomic) IBOutlet UITextField *password;

@end

@implementation LoginWithAccountViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Do any additional setup after loading the view from its nib.
}
//注册
- (IBAction)registerr:(id)sender {
    RegisterViewController *regi = [[RegisterViewController alloc] init];
    [self.navigationController pushViewController:regi animated:YES];
}
//登录
- (IBAction)login:(id)sender {
    [SVProgressHUD show];
    [SVProgressHUD showSuccessWithStatus:@"登陆成功!"];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [SVProgressHUD dismiss];
        [self.navigationController popToRootViewControllerAnimated:YES];
    });
}
//忘记密码
- (IBAction)forgetPwd:(id)sender {
    RetrievePasswordViewController *pwd = [[RetrievePasswordViewController alloc] init];
    [self.navigationController pushViewController:pwd animated:YES];
}
- (IBAction)back:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
